<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<div id="content">
	<c:if test="${! empty message}">
		<table width="100%">
			<tr>
				<td>errcode: <br/><br/></td><td>${message.errcode}<br/><br/></td>
			</tr>
			<tr>
				<td>errmsg: </td><td>${message.errmsg}</td>
			</tr>
		</table>
	</c:if>
	<form action="updateMenu">
		<textarea rows="20" cols="100" name="menuJson">
		<c:if test="${!empty menuJson}">
			${menuJson}
		</c:if>
		<c:if test="${empty menuJson}">
			 {
			     "button":[
			     {	
			          "type":"click",
			          "name":"二维码",
			          "key":"V1001_BAR_CODE"
			      },
			      {
			           "type":"click",
			           "name":"歌手简介",
			           "key":"V1001_TODAY_SINGER"
			      },
			      {
			           "name":"菜单",
			           "sub_button":[
			           {	
			               "type":"view",
			               "name":"搜索",
			               "url":"http://www.soso.com/"
			            },
			            {
			               "type":"view",
			               "name":"视频",
			               "url":"http://v.qq.com/"
			            },
			            {
			               "type":"click",
			               "name":"赞一下我们",
			               "key":"V1001_GOOD"
			            }]
			       }]
			 }
		</c:if>
		</textarea>
		<br>
		<input type="submit">
	</form>
</div>